@import "../common/common";
@import "../common/base";

@nav_list_border_color: rgba(187, 185, 199, 0.19);
@nav_right_border_color: #DCDCDC;
@nav_btn_color: #4280f2;
@nav_item_active_border_color: rgba(187, 185, 199, 0.19);
@nav_close_btn_color: #C0C0C0;
@nav_close_btn_hover_bg_color: #b4bccc;

.navList {
  display: flex;
  align-items: center;
  background: @allWhite;


  .navLeft {
    flex: auto;
    display: flex;
    height: 24px;
    padding-left: 24px;
    border-bottom: 1px solid @nav_list_border_color;

    .navItem {
      position: relative;
      height: 24px;
      line-height: 24px;
      padding: 0 16px;
      font-size: 12px;
      cursor: pointer;

      &:last-child {
        margin-right: 0;
      }

      &.active {
        border: 1px solid @nav_item_active_border_color;
        border-bottom: none;
        border-top-left-radius: 5px;
        border-top-right-radius: 5px;

        &:before {
          content: '';
          position: absolute;
          bottom: 0;
          left: 0;
          right: 0;
          height: 2px;
          background: @allWhite;
        }

        .title {
          color: @fontColor;
        }
      }

      .title {
        color: @fontGrayColor;
      }

      .closeBtn {
        display: inline-block;
        font-size: 12px;
        height: 16px;
        line-height: 14px;
        width: 16px;
        text-align: center;
        margin-left: 5px;
        color: @nav_close_btn_color;
        &:hover{
          border-radius: 50%;
          background-color: @nav_close_btn_hover_bg_color;
          color: @allWhite;
        }
      }
    }
  }

  .navRight {
    display: flex;
    height: 24px;
    line-height: 24px;
    box-sizing: border-box;
    padding: 0 40px 0 24px;
    border-bottom: 1px solid @nav_list_border_color;

    .closeAllBtn {
      cursor: pointer;
      font-size: 12px;
      font-weight: 500;
      color: @allPrimaryColor;
    }
  }
}

@media screen and (max-width: 1440px) {
  .navList .navLeft .navItem {
    padding: 0 12px;
  }
}
